body {
    margin: 0px;
    font-family: sans-serif;
}

header {
    width: 100%;
}

header img {
    width: 100%;
}

*,*::after,*::before {
    box-sizing: border-box;
}

.container {
    margin: 0 auto;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.p1 {
    display: flex;
    flex-direction: row;
    margin: 32px -16px;
}

.p1 .item {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 610px;
    height: 252px;
    background-size: cover;
    background-position: 50% 50%;
    margin: 8px;
    color: #fff;
}

.p1 .item .title {
    font-size: 24px;
    font-weight: bold;
}

.p1 .item .action {
    margin: 16px 0 0;
    padding: 8px 32px;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 16px;
    color: rgba(255,255,255,0.8);
}

.p2 {
    display: flex;
    flex-direction: column;
    margin: 32px -16px;
}

.p2 .toolbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ccc;
    padding: 8px;
}

.p2 .toolbar .title {
    font-size: 24px;
    margin: 0px;
}

.p2 .toolbar .menu {
    display: flex;
    flex-direction: row;
    margin-right: 64px;
    color: #888;
    font-size: 14px;
}

.p2 .toolbar .menu>* {
    padding: 8px 16px;
}

.p2 .toolbar .menu>.active {
    color: rgb(211, 79, 56)
}

.p2 .products {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.p2 .products .items {
    width: 25%;
    padding: 16px;
    text-align: center;
    position: relative;
}

.p2 .products .items img {
    width: 100%;
    position: relative;
    display: block;
}

.p2 .products .items .cover-container {
    width: 100%;
    position: relative;
    line-height: 1;
}

.p2 .products .items .cover-container:hover::after {
    content: "detail view";
    position: absolute;
    bottom: 0px;
    left: 0px;
    height: 32px;
    width: 100%;
    line-height: 32px;
    color: #fff;
    background-color: rgba(211, 79, 56, 0.8);
}

.p2 .products .items .title {
    margin: 16px 0 4px;
}

.p2 .products .items .price {
    margin: 0;
}

.p2 .products .items .price span {
    font-weight: bold;
}

.p3 {
    position: relative;
    margin: 32px -16px;
}

.p3 img {
    width: 100%;
}

.p3 .message {
    position: absolute;
    top: 48px;
    left: 48px;
    color: rgb(106, 86, 77);
    line-height: 1.4;
}

.p3 .message .title {
    font-size: 52px;
    margin: 0px;
}

.p3 .message .description {
    font-size: 24px;
    margin: 0px;
}

.p3 .message .action {
    display: inline-block;
    margin: 8px 8px 0;
    padding: 8px 32px;
    line-height: 1;
    border: 1px solid #000;
    border-radius: 16px;
    color:#000;
}

.p4 {
    position: relative;
    margin: 32px -16px;
}

.p4 .header {
    margin-bottom: 32px;
}

.p4 .header h4 {
    text-align: center;
    margin: 0 0 16px;
}

.p4 .wrapper {
    display: flex;
    flex-direction: row;
}

.p4 .wrapper .item {
    width: 33%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
}

.p4 .wrapper .item img {
    width: 100%;
}

.p4 .wrapper .item .action {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    margin-top: -14px;
    padding: 8px 32px;
    border-radius: 16px;
    background-color: #888;
    line-height: 1;
}

.p4 .wrapper .item .action:hover {
    background-color: rgb(211, 79, 56);
}

.p4 .wrapper .item .title {
    margin: 16px 0 16px;
    font-size: 18px;
}

.p4 .wrapper .item .description {
    margin: 0;
    font-size: 14px;
}

.hr {
    border-bottom: 1px solid #ccc;
}

.p5 {
    position: relative;
    margin: 32px -16px;
}

.p5 .header {
    margin-bottom: 32px;
}

.p5 .header h4 {
    text-align: center;
    margin: 0 0 16px;
}

.p5 .popularities {
    display: flex;
    flex-direction: row;
}

.p5 .popularities .item {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 16px;
}

.p5 .popularities .item .cover-img {
    width: 100%;
}

.p5 .popularities .item .description {
    margin: 8px 0 8px;
}

.p5 .popularities .item .heart {
    width: 16px;
    height: 16px;
}

.p5 .popularities .item .float-text {
    position: absolute;
    top: 32px;
    left: 32px;
}

.p5 .popularities .item .float-text .title {
    font-size: 20px;
}

footer {
    min-height: 64px;
    background-color: rgb(30, 30, 30);
    color: rgba(255, 255, 255, 0.5);
}

footer {
    min-height: 64px;
    background-color: rgb(30, 30, 30);
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
}

footer .container {
    padding: 32px 64px;
    display: flex;
    flex-direction: row;
}

footer .container .item {
    max-width: 25%;
    line-height: 1.6;
    padding: 0px 16px;
}

footer .container .item .title {
    color: #aaa;
    font-family: serif;
    font-size: 18px;
    display: inline-block;
    padding: 8px 2px;
    border-bottom: 1px solid currentColor;
    margin-bottom: 24px;
}

footer .container .item .description {
    line-height: 2;
    font-size: 14px;
}

footer .search {
    margin: 32px 0 64px;
    max-width: 600px;
    width: 100%;
}

footer .search input {
    border: 0px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    background-color: transparent;
}

footer .search button {
    border: 0px;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    background-color: transparent;
}

footer .search form {
    width: 100%;
}

.search-bar {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: rgba(255,255,255, 0.8);
    padding: 16px 16px 16px 32px;
    border-radius: 32px;
}

.search-bar input {
    flex-grow: 1;
}

.search-bar .search-icon {
    width: 16px;
    height: 16px;
}